{imp:"c_pub/mlay_main"}<!--继承父模板-->

{block:init}<?php
$tpls = req('tpls','');
$tpla = explode(',',$tpls); $tplb = array();
foreach($tpla as $k=>$v){
    if(strstr($v,'c_pub/')){
        $tplb[$k] = $v;
        unset($tpla[$k]);
    }
}
$tpla += $tplb; 
$path = cfg('tpl.tpl_dir');
$fext = $_cbase['tpl']['tpl_ext'];
?>{/block:init}

{block:main}

<?php foreach($tpla as $tpl){ if(empty($tpl)) continue; ?>
  <div class="inn-atitle">
  <a href="#" class="right">[Top]</a>
  <p><i class="label-primary">{=$path}/{=$tpl}{if !strstr($tpl,'.php')}{=$fext}{/if}</i></p>
  </div>
  <li class="info-coder" style="font-family:Tahoma, Geneva, sans-serif"><?php echo tex_base::coder($tpl); ?></li>
<?php } ?>

<script>
<?php 
$ntpl_str = implode(',',$_cbase['run']['tpls']); 
$ntpl_url = "?mkv=info-coder&tpls=$ntpl_str"; 
if(empty($tpls)) echo "window.location.href='$ntpl_url'; ";
?>
</script>

{/block:main}
